//
//  GeoInfo.h
//  GeoData
//
//  Created by zhenhua zhou on 12-7-7.
//  Copyright (c) 2012年 ECUST. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "GeoData.h"

#import "HttpClient.h"
#import "MagiMapView.h"

@interface GeoInfo : NSObject
{
    GeoData * mGeoData;
    NSDateFormatter * mTimeData;
    
    HttpClient * mNetClient;
    
   //  GeoInfo* instance;
    UILabel * mPriceLabel;
    UILabel * mDistanceLabel;
    UILabel * mDurationLabel;
    
    MagiMapView * mMapView;
    CLLocation* currentLocation;
    
}

- (GeoInfo *)init;
- (void)dealloc;
- (int32_t)getCurRouteLength;
- (RouteData *)getCurRoute;
- (NSString *)getCurCity;
- (NSString *)getCurTime;
- (void) testFunc:(UITextField*) textField;
- (void) onNetworkReturn:(NSString *) data;
- (void) parserDataWithString:(NSString *) str;
- (void) searchRouteFrom:(NSString *)start To:(NSString *)end;
- (void) searchRouteFromPos:(CLLocationCoordinate2D *)start To:(NSString *)end;

-(void) setMagiMapView:(MagiMapView *) mapView;
-(void) showRoute:(MagiMapView *) mapView;
-(void) setPriceLabel:(UILabel *) label;
-(void) setDistanceLabel:(UILabel *) label;
-(void) setDurationLabel:(UILabel *) label;


+ (GeoInfo *)getInstance;


//need more interfaces for network.
//waiting for the interfaces define from network.


@end

//static GeoInfo * gGeoInfo = [[GeoInfo alloc] init];
